import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store' // 导入store实例

import "./styles/global.scss"
import "./styles/sign.scss"

import Vant from 'vant'
import 'vant/lib/index.css'

import { URL_link } from './constant/url.js'
import { request  } from '@/utils/request'
import { PUBLIC } from "@/utils/common-func"
import VConsole from "vconsole"
Vue.config.productionTip = false

Vue.use(Vant)

Vue.prototype.$url= URL_link // 网络请求链接
Vue.prototype.$request = request//网络请求方法
Vue.prototype.$public = PUBLIC

let testHostName = ['test2.citicpruagents.com.cn']
if (window.LOCAL_CONFIG.vconsole_is_enable && testHostName.indexOf(window.location.hostname) > -1) { // 测试环境h5显示vconsole
	var vConsole = new VConsole({ onReady: () => { } })
}

new Vue({
	router,
	store, // 挂载store
  render: h => h(App),
}).$mount('#app')
